import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "Exam_results")
public class ExamWithResult {
	@Id
	@Column(name= "exam_id")
	private Integer exam_id;
	
	@Column(name= "user_id")
	private Integer student_id;
	
	@Column(name= "mark")
	private Integer mark;
	
	@Column(name= "note")
	private String note;
	
	//getters
	public Integer getId(){return this.exam_id;}
	
	public Integer getStudent_id(){return this.student_id;}
	
	public Integer getMark(){return this.mark;}
	
	public String getNote(){return this.note;}
	
	//setters
	
	public void setId(Integer id){this.exam_id=id;}
	
	public void setStudent_id(Integer id) {this.student_id= id;}
	
	public void setMark(Integer mark) {this.mark= mark;}
	
	public void setNote(String note) {this.note= note;}
	
}
